package guestbook;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.users.User;

/*
 * <FDT_data 
 * lcd1="40194" 
 * Road_LCD="40192" 
 * Road_name="Corso Vercelli(TO)"
 * offset="1347" 
 * direction="positive" 
 * lat="45.10720" 
 * lng="7.69686"
 * accuracy="100" 
 * period="5">
 * 
 * <speedflow 
 * flow="1200.00" 
 * speed="32.61"
 * />
 * 
 * </FDT_data>
 * 
*/

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class FDT_data {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long lcd1;

	@Persistent
	private Long road_LCD;

	@Persistent
	private String road_name;

	@Persistent
	private Long offset;

	@Persistent
	private String direction;

	@Persistent
	private Double lat;

	@Persistent
	private Double lng;

	@Persistent
	private Integer accuracy;

	@Persistent
	private Integer period;

	@Persistent
	private Double flow;

	@Persistent
	private Double speed;

	@Persistent
	private Date date;

	public FDT_data(Long lcd1, Long road_LCD, String road_name, Long offset,
			String direction, Double lat, Double lng, Integer accuracy,
			Integer period, Double flow, Double speed, Date date) {
		this.lcd1 = lcd1;
		this.road_LCD = road_LCD;
		this.road_name = road_name;
		this.offset = offset;
		this.direction = direction;
		this.lat = lat;
		this.lng = lng;
		this.accuracy = accuracy;
		this.period = period;
		this.flow = flow;
		this.speed = speed;
		this.date = date;
	}

	public Long get_lcd1() {
		return lcd1;
	}

	public void set_lcd1(Long lcd1) {
		this.lcd1 = lcd1;
	}

	public Long get_road_LCD() {
		return road_LCD;
	}

	public void set_road_LCD(Long road_LCD) {
		this.road_LCD = road_LCD;
	}

	public String get_road_name() {
		return road_name;
	}

	public void set_road_name(String road_name) {
		this.road_name = road_name;
	}

	public Long get_offset() {
		return offset;
	}

	public void set_offset(Long offset) {
		this.offset = offset;
	}

	public String get_direction() {
		return direction;
	}

	public void set_direction(String direction) {
		this.direction = direction;
	}

	public Double get_lat() {
		return lat;
	}

	public void set_lat(Double lat) {
		this.lat = lat;
	}

	public Double get_lng() {
		return lng;
	}

	public void set_lng(Double lng) {
		this.lng = lng;
	}

	public Integer get_accuracy() {
		return accuracy;
	}

	public void set_accuracy(Integer accuracy) {
		this.accuracy = accuracy;
	}

	public Integer get_period() {
		return period;
	}

	public void set_period(Integer period) {
		this.period = period;
	}

	public Double get_flow() {
		return flow;
	}

	public void set_flow(Double flow) {
		this.flow = flow;
	}

	public Double get_speed() {
		return speed;
	}

	public void set_speed(Double speed) {
		this.speed = speed;
	}

	public Date get_date() {
		return date;
	}

	public void set_date(Date date) {
		this.date = date;
	}

}
